package edu.calvin.djs32.cs214.interpreters.acceptance;

import java.io.IOException;

import org.antlr.runtime.ANTLRStringStream;
import org.antlr.runtime.RecognitionException;

import edu.calvin.cs214.hobbes2008.HobbesTIR;
import edu.calvin.djs32.cs214.interpreters.calculator.Calculator;
import edu.calvin.djs32.cs214.interpreters.frontend.Hobbes2008FrontEnd;
import fit.ColumnFixture;

public class FunctionalCalculator extends ColumnFixture{
	public String input;
	
	public String output() throws RecognitionException, IOException{
		HobbesTIR process = new Hobbes2008FrontEnd().process(new ANTLRStringStream(input));
		Calculator myCalculator = new Calculator();
		return process.accept(myCalculator).toString();
		
	}
}
